package com.jiangnan.artstudio.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentManager;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.jiangnan.artstudio.R;

public class MineWdgzs extends BaseFragment {
    private TextView fs,gz;
    public ImageView imageView;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.mine_wdgzs, container, false);
        imageView = view.findViewById(R.id.mine_arrow_return);
        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                FragmentManager fm = getActivity().getSupportFragmentManager();
                fm.beginTransaction()
                        //替换为TwoFragment
                        .replace(R.id.main_content,new MineFragment())
                        .commit();
            }
        });

        fs = view.findViewById(R.id.fs);
        gz = view.findViewById(R.id.gz);
        String str1 = "300<br><font color='#FFFFFF'>粉丝</font>";
        fs.setText(Html.fromHtml(str1));
        String str2 = "15<br><font color='#FFFFFF'>关注</font>";
        gz.setText(Html.fromHtml(str2));

        // 沉浸式状态栏
        initTitle(view);
        return view;
    }
}